package com.yfp.operation.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yfp.common.core.text.BigDecimalSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 券包销售数据查询结果
 */
@Data
public class ComboSalesPositionVO {

    /**
     * 点位名称
     */
    @Schema(description = "点位名称")
    private String positionName;

    /**
     * 设备名称
     */
    @Schema(description = "设备名称")
    private String machineName;

    /**
     * 设备编号
     */
    @Schema(description = "设备编号")
    private String machineSn;

    /**
     * 投放数量
     */
    @Schema(description = "投放数量")
    private Integer shelfCount;

    /**
     * 售卖数量
     */
    @Schema(description = "售卖数量")
    private Integer saleNum;

    /**
     * 售卖率
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    @Schema(description = "售卖率")
    private BigDecimal repurchaseRate;
}
